ggblanket: making beautiful ggplot2 visualisation simpler {https://t.co/JzjvIxey0D} #rstats #DataScience
— R-bloggers (@Rbloggers) May 14, 2022
Best Books to Learn R Programming {https://t.co/e6v6GstTSL} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2022
5 Key Data Visualization Principles Explained – Examples in R {https://t.co/3EnV3282sz} #rstats #DataScience
— R-bloggers (@Rbloggers) May 10, 2022
Shiny in Production (2022) {https://t.co/r8GNtRtKDS} #rstats #DataScience
— R-bloggers (@Rbloggers) May 13, 2022
Comparing performances of CSV to RDS, Parquet, and Feather file formats in R {https://t.co/WxaqE5HIMt} #rstats #DataScience
— R-bloggers (@Rbloggers) May 9, 2022
How to embed a Shiny app into your blog posts {https://t.co/HFoXeeByVq} #rstats #DataScience
— R-bloggers (@Rbloggers) May 9, 2022
Change ggplot2 Theme Color in R ggthemr Package {https://t.co/jyDIFTbEmj} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2022
Free workshop on how to learn R {https://t.co/Jf8NrVrxEc} #rstats #DataScience
— R-bloggers (@Rbloggers) May 12, 2022
survivoR v1.0 is now on CRAN {https://t.co/5mLq7UI0IA} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2022
Three packages that port the tidyverse to Python {https://t.co/WGQVAchPBp} #rstats #DataScience
— R-bloggers (@Rbloggers) May 10, 2022
How to make a rounded corner bar plot in R? {https://t.co/Qg0Xm98YIv} #rstats #DataScience
— R-bloggers (@Rbloggers) May 14, 2022
Beautiful Maps with R (IV): Fun with flags revisited {https://t.co/CaZhBceLvB} #rstats #DataScience
— R-bloggers (@Rbloggers) May 13, 2022
Bayesian analyses made easy: GLMMs in R package brms {https://t.co/POSpLZRPa1} #rstats #DataScience
— R-bloggers (@Rbloggers) April 18, 2022
R and Excel: How to Combine the Best of Both Worlds {https://t.co/29X4eIvwp3} #rstats #DataScience
— R-bloggers (@Rbloggers) April 29, 2022
ggblanket: making beautiful ggplot2 visualisation simpler {https://t.co/JzjvIxey0D} #rstats #DataScience
— R-bloggers (@Rbloggers) May 14, 2022
Data Cleaning in R: 2 R Packages to Clean and Validate Datasets {https://t.co/MibZ2lNmMS} #rstats #DataScience
— R-bloggers (@Rbloggers) May 3, 2022
Mastering Git and GitHub: the hands-on workshop {https://t.co/1ltLOvfBBM} #rstats #DataScience
— R-bloggers (@Rbloggers) May 5, 2022
Best Books to Learn R Programming {https://t.co/e6v6GstTSL} #rstats #DataScience
— R-bloggers (@Rbloggers) May 15, 2022
How to create your own functions in R {https://t.co/2AEuycBrGe} #rstats #DataScience
— R-bloggers (@Rbloggers) April 21, 2022
Using Shiny to Create an Academic Poster {https://t.co/LUZi8zMda5} #rstats #DataScience
— R-bloggers (@Rbloggers) April 25, 2022
Text Analysis of Job Descriptions for Data Scientists, Data Engineers, Machine Learning {https://t.co/luWLNT9vV8} #rstats #DataScience
— R-bloggers (@Rbloggers) April 18, 2022
5 Key Data Visualization Principles Explained – Examples in R {https://t.co/3EnV3282sz} #rstats #DataScience
— R-bloggers (@Rbloggers) May 10, 2022
WTF is Kubernetes and Should I Care as R User? {https://t.co/Yt6tT5g15M} #rstats #DataScience
— R-bloggers (@Rbloggers) April 17, 2022
Analyze your Twitter timeline with {rtweet} and {lubridate} {https://t.co/iyxJXc04YX} #rstats #DataScience
— R-bloggers (@Rbloggers) May 8, 2022
How to reshape your data in R for analysis {https://t.co/j0N0QRuVk4} #rstats #DataScience
— R-bloggers (@Rbloggers) April 28, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```